home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- PKG_Path=$1
- Location=$2
- ASK=$PKG_Path/ask
- RC=$Location/etc/rc
-
- echo Checking status of reboot and shutdown.
-
- Targets="reboot halt"
- Location=$2
- TimeShift=$Location/usr/etc/timeshift
-
- for Target in $Targets
- do
- File=$Location/usr/etc/$Target
- if [ -f $File.real ]
- then if /usr/ucb/what $File.real | grep -s 'Berkeley'
- then rm $File
- if mv $File.real $File
- then echo Moved $File.real to $File
- else echo "Could not rename $File!" >&2
- exit 1
- fi
- fi
- /usr/ucb/what $File
- else echo $File not present
- exit 1
- fi
- done
-
- echo "Remember to remove the timeshift hook."
-